/**
 * Created by caoyang on 17/5/11.
 */
import {
    NativeModules,
} from 'react-native';

const { RNUserDefaults } = NativeModules;


module.exports = {
    ...RNUserDefaults,

    setObject: function setObject(obj, key) {
        RNUserDefaults.setObject(obj, key);
    },

    objectForKey: function objectForKey(key, callback) {
        RNUserDefaults.objectForKey(key, callback);
    },
}

export default RNUserDefaults;


